<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>退货单报表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
	<link rel="stylesheet" href="${staticPath }/static/bootstrap/bootstrap.min.css" />

	<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
	<link rel="stylesheet" href="${staticPath }/static/bootstrap/bootstrap-theme.min.css" />

  </head>
  
  <body>
  	<div style="width:100%;  margin: 0 auto;margin-top:25px"  >
  		<table class="table table-bordered">
  			<tr class="info">
  				<td style="width:10%" class="text-center">时间</td>
  				<td style="width:12%" class="text-center">类型</td>
  				<td class="text-center">总数</td>
  				<td class="text-center">发错货</td>
  				<td class="text-center">多发货</td>
  				<td class="text-center">采购不到</td>
  				<td class="text-center">质量问题</td>
  				<td class="text-center">尺码问题</td>
  				<td class="text-center">物流原因</td>
  				<td class="text-center">客户错误下单</td>
  				<td class="text-center">其他</td>
  				
  			</tr> 
			<c:forEach items="${refundList}" var="refundList" varStatus="status">  
		 		<tr>  
			    	<td  rowspan=2 style="text-align:center;vertical-align:middle">${refundList.dimensionDate}</td>  
			    	<td>退款商品件数</td>  
			    	<td>
			    		<c:choose>
						   <c:when test="${refundList.totalReturnNum > 0}">  
						        ${refundList.totalReturnNum}
						   </c:when>
						   <c:otherwise> 
						     -
						   </c:otherwise>
						</c:choose>
			    	</td>
			    	<td>
			    		<c:choose>
						   <c:when test="${refundList.returnNumOne > 0}">  
						        ${refundList.returnNumOne}
						   </c:when>
						   <c:otherwise> 
						     -
						   </c:otherwise>
						</c:choose>
			    	</td>  
			    	<td>
			    		<c:choose>
						   <c:when test="${refundList.returnNumTwo > 0}">  
						        ${refundList.returnNumTwo}
						   </c:when>
						   <c:otherwise> 
						     -
						   </c:otherwise>
						</c:choose>
			    	</td>  
			    	<td>
			    		<c:choose>
						   <c:when test="${refundList.returnNumThree > 0}">  
						        ${refundList.returnNumThree}
						   </c:when>
						   <c:otherwise> 
						     -
						   </c:otherwise>
						</c:choose>
			    	</td>
			    	<td>
			    		<c:choose>
						   <c:when test="${refundList.returnNumFour > 0}">  
						        ${refundList.returnNumFour}
						   </c:when>
						   <c:otherwise> 
						     -
						   </c:otherwise>
						</c:choose>
			    	</td>    
			    	<td>
			    		<c:choose>
						   <c:when test="${refundList.returnNumFive > 0}">  
						        ${refundList.returnNumFive}
						   </c:when>
						   <c:otherwise> 
						     -
						   </c:otherwise>
						</c:choose>
			    	</td>
			    	<td>
			    		<c:choose>
						   <c:when test="${refundList.returnNumSix > 0}">  
						        ${refundList.returnNumSix}
						   </c:when>
						   <c:otherwise> 
						     -
						   </c:otherwise>
						</c:choose>
			    	</td>   
			    	<td>
			    		<c:choose>
						   <c:when test="${refundList.returnNumSeven > 0}">  
						        ${refundList.returnNumSeven}
						   </c:when>
						   <c:otherwise> 
						     -
						   </c:otherwise>
						</c:choose>
			    	</td>   
			    	<td>
			    		<c:choose>
						   <c:when test="${refundList.returnNumOther > 0}">  
						        ${refundList.returnNumOther}
						   </c:when>
						   <c:otherwise> 
						     -
						   </c:otherwise>
						</c:choose>
			    	</td>         
		  		</tr>
		  		<tr>
			    	<td>退款商品金额</td>
			    	<td>
			    		<c:choose>
						   <c:when test="${refundList.totalReturnPrice > 0}">  
						        ${refundList.totalReturnPrice}
						   </c:when>
						   <c:otherwise> 
						     -
						   </c:otherwise>
						</c:choose>
			    	</td>
			    	<td>
			    		<c:choose>
						   <c:when test="${refundList.returnPriceOne > 0}">  
						        ${refundList.returnPriceOne}
						   </c:when>
						   <c:otherwise> 
						     -
						   </c:otherwise>
						</c:choose>
			    	</td>
			    	<td>
			    		<c:choose>
						   <c:when test="${refundList.returnPriceTwo > 0}">  
						        ${refundList.returnPriceTwo}
						   </c:when>
						   <c:otherwise> 
						     -
						   </c:otherwise>
						</c:choose>
			    	</td>
			    	<td>
			    		<c:choose>
						   <c:when test="${refundList.returnPriceThree > 0}">  
						        ${refundList.returnPriceThree}
						   </c:when>
						   <c:otherwise> 
						     -
						   </c:otherwise>
						</c:choose>
			    	</td>
			    	<td>
			    		<c:choose>
						   <c:when test="${refundList.returnPriceFour > 0}">  
						        ${refundList.returnPriceFour}
						   </c:when>
						   <c:otherwise> 
						     -
						   </c:otherwise>
						</c:choose>
			    	</td>
			    	<td>
			    		<c:choose>
						   <c:when test="${refundList.returnPriceFive > 0}">  
						        ${refundList.returnPriceFive}
						   </c:when>
						   <c:otherwise> 
						     -
						   </c:otherwise>
						</c:choose>
			    	</td>
			    	<td>
			    		<c:choose>
						   <c:when test="${refundList.returnPriceSix > 0}">  
						        ${refundList.returnPriceSix}
						   </c:when>
						   <c:otherwise> 
						     -
						   </c:otherwise>
						</c:choose>
			    	</td>
			    	<td>
			    		<c:choose>
						   <c:when test="${refundList.returnPriceSeven > 0}">  
						        ${refundList.returnPriceSeven}
						   </c:when>
						   <c:otherwise> 
						     -
						   </c:otherwise>
						</c:choose>
			    	</td>
			    	<td>
			    		<c:choose>
						   <c:when test="${refundList.returnPriceOther > 0}">  
						        ${refundList.returnPriceOther}
						   </c:when>
						   <c:otherwise> 
						     -
						   </c:otherwise>
						</c:choose>
			    	</td>
		  		</tr>
			</c:forEach>
		</table>
  	</body>
 	 </div>
</html>
